package com.changan.config;

import com.changan.error.EmBusinessError;
import com.changan.response.CommonReturnType;
import io.jsonwebtoken.SignatureException;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestControllerAdvice;

/*@RestControllerAdvice
public class PermissionHandler {
    @ExceptionHandler(value = {SignatureException.class})
    @ResponseBody
    public CommonReturnType authorizationException(SignatureException e) {
        return CommonReturnType.create("fail", EmBusinessError.AUTHORIZATION_EXCEPTION);
    }
}*/
